package com.itheima.pojo;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDate;
import java.time.LocalDateTime;

/**
 * @Author：cxl
 * @Package：com.itheima.pojo
 * @Project：web-project
 * @name：Student
 * @Date：2025-09-29 8:18 pm
 * @Filename：Student
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class Student {
    //ID
    private Integer id;
    //姓名
    private String name;
    //序号
    private String no;
    //性别1：男 2：女
    private Integer gender;
    //手机号
    private String phone;
    // 身份证号
    private String idCard;
    //是否来自于院校1：是 2：否
    private Integer isCollege;
    //联系地址
    private String address;
    //最高学历1：初中2：高中3：大专4：本科5：硕士6：博士
    private Integer degree;
    //毕业日期
    @JsonFormat(pattern = "yyyy-MM-dd")
    private LocalDate graduationDate;
    //班级ID
    private Integer clazzId;
    //违纪次数
    private Integer violationCount;
    //违纪扣分
    private Integer violationScore;
    //创建时间
    @JsonFormat(pattern = "yyyy-MM-dd' 'HH:mm:ss", timezone = "GMT+8")
    private LocalDateTime createTime;
    //修改时间
    @JsonFormat(pattern = "yyyy-MM-dd' 'HH:mm:ss", timezone = "GMT+8")
    private LocalDateTime updateTime;

    //班级名称
    private String clazzName;
}
